/**
 * @(#)AttachementServiceImpl.java Jan 18, 2010
 *   
 * Copyright  (c) 2009-2010 Wilmar IT Service,  Inc.   
 * All  rights  reserved.   
 * TODO
 */

package test.service.process;

import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;

import com.wilmar.process.core.services.spi.IAttachementService;
import com.wilmar.process.entity.Attachement;

/**
 * @author makubex Email:makubexnet@gmail.com
 * @version 1.0.0
 */
public class SimpleAttachementServiceImpl implements IAttachementService {

	/**
	 * @see com.wilmar.process.core.services.spi.IAttachementService#getListByBusinessKey(java.lang.String)
	 */
	public List<Attachement> getListByBusinessKey(String businessKey) {
		List<Attachement> list = new ArrayList<Attachement>();
		try {
			list.add(new Attachement(new URI("/wfss/process/a.jsp"), "a.jsp"));
			list.add(new Attachement(new URI("/wfss/process/b.jsp"), "b.jsp"));
			list.add(new Attachement(new URI("/wfss/process/c.jsp"), "c.jsp"));
		} catch (URISyntaxException e) {
			e.printStackTrace();
		}
		
		return list;
	}

}
